/*=======================================================================*\
|| ##################################################################### ||
|| # `Fix for Old vBulletins.txt`						     # ||
|| # ------------------------------------------------------------------# ||
|| # Author: John Jakubowski "Darkwaltz4" {blackwaltz4@msn.com}	     # ||
|| # -----------------vBulletin IS NOT FREE SOFTWARE!------------------# ||
|| #                Support: http://www.vbcredits.com/		     # ||
|| ##################################################################### ||
\*=======================================================================*/

Please note that this fix does NOT need to be applied if you already use vBulletin 3.6.6 or higher.

Apply the 1 File Edit to the 1 File listed below, and reupload the file.

Continue following the directions from the Installation or Upgrade text file you were using.


For support, questions, comments, suggestions, etc, please see the vBulletin.org thread that this was downloaded from, or the support links.

Interested in special addons or to remove the branding links?
Please check out http://www.vbcredits.com/ for more information, or contact me via email or IM!

Thank you for using this hack, please show your support by indicating you have installed it!
-John "Darkwaltz4" Jakubowski {blackwaltz4@msn.com}

================================
File: includes/adminfunctions.php
================================
FIND:
--------------------------------
		default:
			$item = $vbulletin->db->query_first("
				SELECT $idfield, $titlename AS title
				FROM " . TABLE_PREFIX . "$table
				WHERE $idfield = $itemid
			");
			break;
--------------------------------
REPLACE WITH:
--------------------------------
		default:
			$handled = false;
			($hook = vBulletinHook::fetch_hook('admin_delete_confirmation')) ? eval($hook) : false;

			if (!$handled)
			{
				$item = $vbulletin->db->query_first("
					SELECT $idfield, $titlename AS title
					FROM " . TABLE_PREFIX . "$table
					WHERE $idfield = $itemid
				");
			}
			break;


================================